package com.dongdong.service.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.dubbo.config.annotation.Service;
import com.dongdong.mapper.TPersonMapper;
import com.dongdong.pojo.TPerson;
import com.dongdong.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;

@Service
@org.springframework.stereotype.Service
public class PersonServiceImpl implements PersonService {
    @Autowired
    private TPersonMapper tPersonMapper;

    @Override
    public TPerson selectByPname(String username) {
        TPerson person = tPersonMapper.selectByPname(username);
        System.out.println(person.getPname());
        return person;
    }
}
